package com.lqjava.tuxiaowang.tuxiaowang.customerapp.app.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lqjava.tuxiaowang.tuxiaowang.beans.entity.domain.MiniProgramInfo;
import com.lqjava.tuxiaowang.tuxiaowang.beans.mapper.MiniProgramInfoMapper;
import com.lqjava.tuxiaowang.tuxiaowang.customerapp.app.service.MiniProgramInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MiniProgramInfoServiceImpl implements MiniProgramInfoService {

	@Autowired
	MiniProgramInfoMapper mapper;
	
	@Override
	public MiniProgramInfo get(String type, String appid) {
		return mapper.selectOne(new LambdaQueryWrapper<MiniProgramInfo>().eq(MiniProgramInfo::getType,type).eq(MiniProgramInfo::getAppid,appid));
	}

}
